package com.example.demo.entity.requestJson;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("忘记密码请求JSON类")
public class AForgetPwdReq {
    /**
     *主键
     * 作者id
     * isnull 1
     */
    @ApiModelProperty(value="作者id",position=1)
    @TableId(type = IdType.ASSIGN_ID)
    private String authorId;

    /**
     * 手机号
     * isnull 1
     */
    @ApiModelProperty(value="手机号",position=2)
    private String phone;

    /**
     * 验证码
     * isnull 1
     */
    @ApiModelProperty(value="验证码",position=3)
    private String code;

    /**
     * 新密码
     * isnull 1
     */
    @ApiModelProperty(value="新密码",position=4)
    private String newPwd;

    /**
     * 确认密码
     * isnull 1
     */
    @ApiModelProperty(value="确认密码",position=5)
    private String confirmPwd;

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getNewPwd() {
        return newPwd;
    }

    public void setNewPwd(String newPwd) {
        this.newPwd = newPwd;
    }

    public String getConfirmPwd() {
        return confirmPwd;
    }

    public void setConfirmPwd(String confirmPwd) {
        this.confirmPwd = confirmPwd;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @Override
    public String toString() {
        return "AForgetPwdReq{" +
                "authorId='" + authorId + '\'' +
                ", phone='" + phone + '\'' +
                ", code='" + code + '\'' +
                ", newPwd='" + newPwd + '\'' +
                ", confirmPwd='" + confirmPwd + '\'' +
                '}';
    }
}
